#pragma once

#include "mprpcconfig.h"
#include "mprpcchannel.h"
#include "mprpcprovider.h"
#include "mprpccontroller.h"

// mprpc框架的基础类，负责框架的一些初始化操作
class MprpcApplication
{
public:
    static void Init(int argc, char** argv);
    static MprpcApplication& getInstance();
    static MprpcConfig& getConfig();

private:
    static MprpcConfig _config;

    MprpcApplication() {}
    MprpcApplication(const MprpcApplication&) = delete;
    MprpcApplication& operator=(const MprpcApplication&) = delete;
};